//
//  CategorySmallCollectionViewCell.m
//  EveryDesigner
//
//  Created by CJX on 2016/10/31.
//  Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved.
//

#import "CategorySmallCollectionViewCell.h"

@interface CategorySmallCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *categoryImageView;
@property (weak, nonatomic) IBOutlet UILabel *categoryNameLabel;

@end

@implementation CategorySmallCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    
    
    
    
    // Initialization code
}

-(void)setModel:(CategoryModel *)model{
    [_categoryImageView sd_setImageWithURL:[NSURL URLWithString:model.categories_image] placeholderImage:nil];
//    _categoryImageView.image = [UIImage imageNamed:@"img_guarantee"];
    _categoryNameLabel.text = model.categories_name;
    _categoryNameLabel.textAlignment = NSTextAlignmentCenter;
    _categoryNameLabel.numberOfLines = 0;
    if (KScreenWidth > 320) {
        _categoryNameLabel.font = [UIFont systemFontOfSize:12];
    }else
    {
        _categoryNameLabel.font = [UIFont systemFontOfSize:10];
    }
}

@end
